<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\AccountLog
 *
 * @property int $id
 * @property int $account_id
 * @property int $version
 * @property string $type
 * @property string $action_type
 * @property int $action_id
 * @property string $free_before
 * @property string $free_change
 * @property string $free_after
 * @property string $lock_before
 * @property string $lock_change
 * @property string $lock_after
 * @property string $created_at
 * @property-read \App\Models\Account|null $account
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog query()
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereAccountId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereActionId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereActionType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereFreeAfter($value)
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereFreeBefore($value)
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereFreeChange($value)
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereLockAfter($value)
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereLockBefore($value)
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereLockChange($value)
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|AccountLog whereVersion($value)
 * @mixin \Eloquent
 */
class AccountLog extends Model
{
    use HasFactory;

    public $timestamps = false;

    public function account()
    {
        return $this->belongsTo(Account::class);
    }
}
